import { useContext, useState } from "react";
// import "./App.css";
import { SConfigProvider } from "../lib/main.js";
import SForm from "../lib/components/form/index"

function App() {
  const [count, setCount] = useState(0);

  return <Bar></Bar>;
}

function Bar() {
  const items = [{label: "test1", value: 1},{label: "test1", value: 12},{label: "test1", value: 13},{label: "test1", value: 14}]
  const formItems = [{label:"时间",name: "time", inputType:"datePicker"}]
  return (
    <SConfigProvider>
      <div style={{width: "800px", height: "800px"}}>
        emm
        {/* <Foo></Foo> */}
        <SForm formItems={formItems}></SForm>
      </div>
    </SConfigProvider>
  );
}

function Foo() {
  return <div>ff</div>;
}

export default App;
